@extends('Admin.layout.layout')
@section('title','友情链接添加')
@section('content')

    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">友情链接添加</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    @if (count($errors) > 0 )
        <div class="alert alert-danger">
        @foreach ($errors->all() as $error)
            <li>{{ $error }}</li>
        @endforeach
        </div>
    @endif
    <div class="row">
        <div class="col-lg-6 col-lg-offset-3">
            <form role="form" action="{{url('/admin/fri/insert')}}" method="post" enctype="multipart/form-data">
                <div class="form-group">
                    <label>链接标题</label>
                    <input name="title" class="form-control" placeholder="链接标题">
                </div>
                <div class="form-group">
                    <label>链接描述</label>
                    <input name="descript" class="form-control" placeholder="链接描述">
                </div>
                <div class="form-group">
                    <label>链接地址</label>
                    <input name="url" class="form-control" placeholder="链接地址">
                </div>
                <div class="form-group">
                    <div style="position:relative;float:left">
                        <label>链接图标</label>
                        <input type="file" name="pic">
                    </div>
                    <div style="position:relative;float:left"> 
                        <img src="/public/images/baidu.gif" width="80px" height="50px">
                    </div>
                </div>
                {{ csrf_field() }}
                <button class="btn btn-primary btn-lg btn-block">提交</button>
            </form>
        </div>
    </div>
@endsection